OCM-19812: Improve local development documentation#569
OCM-19812: Improve local development documentation#569Alcamech wants to merge 1 commit intoopenshift:masterfrom
Conversation
|
@Alcamech: This pull request references OCM-19812 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Alcamech The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
LGTM |
WalkthroughReorganized Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@Alcamech: This pull request references OCM-19812 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/development.md`:
- Around line 91-95: The documentation shows inconsistent test commands: the
prose says "make test" but the code block uses "make go-test"; update the docs
so both prose and the code block use the same command (choose either "make test"
or "make go-test") and make the change in the docs/development.md text
surrounding the testing instruction so the sentence and the fenced shell snippet
match (look for the lines containing "make test" and the code block with "make
go-test").
ℹ️ Review info
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to data retention organization setting
📒 Files selected for processing (1)
docs/development.md
|
@Alcamech: This pull request references OCM-19812 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
docs/development.md (1)
123-125: Make scale-down/lease cleanup idempotentThese setup commands fail noisily when MUO or the lease is already absent. Consider
--ignore-not-found=trueso local setup can be rerun safely.Suggested doc update
-oc scale deployment managed-upgrade-operator -n openshift-managed-upgrade-operator --replicas=0 -oc delete lease managed-upgrade-operator-lock -n openshift-managed-upgrade-operator +oc scale deployment managed-upgrade-operator -n openshift-managed-upgrade-operator --replicas=0 --ignore-not-found=true +oc delete lease managed-upgrade-operator-lock -n openshift-managed-upgrade-operator --ignore-not-found=true🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/development.md` around lines 123 - 125, Update the two teardown commands to be idempotent by adding the ignore-not-found flag: modify the oc scale command for the deployment managed-upgrade-operator and the oc delete command for the lease managed-upgrade-operator-lock to include --ignore-not-found=true so rerunning the setup/cleanup won’t error if the deployment or lease is already absent.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@docs/development.md`:
- Around line 123-125: Update the two teardown commands to be idempotent by
adding the ignore-not-found flag: modify the oc scale command for the deployment
managed-upgrade-operator and the oc delete command for the lease
managed-upgrade-operator-lock to include --ignore-not-found=true so rerunning
the setup/cleanup won’t error if the deployment or lease is already absent.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: d91bca20-cc0a-4254-bc0b-87f748ae8318
📒 Files selected for processing (1)
docs/development.md
|
@Alcamech: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What type of PR is this?
Documentation
What this PR does / why we need it?
Updates the local
development.mddocumentation to:UpgradeConfigSyncFailureOver4HrSREto ignoredCriticals in the test ConfigMap (this alert fires when the deployed MUO is scaled down)
OSDK_FORCE_RUN_MODE=localrequirement for routes (both env vars are needed)Which Jira/Github issue(s) this PR fixes?
Fixes OCM-19812
Summary by CodeRabbit